package com.zhouyx.userservice.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @title: Region
 * @Author: max.zhou1
 * @Date: 2024/9/14 17:30
 * @Version: 1.0
 **/
@Configuration
@Data
public class Region {
    @Value("${region.biz.needCoolingOff: false}")
    private boolean needCoolingOff; // 是否需要冷却期

    @Value("${region.biz.verifyEmailExpireDays: 10}")
    private int verifyEmailExpireDays; // 验证邮箱过期天数

    @Value("${region.biz.userNotifyChannel}")
    private String userNotifyChannel; // 用户通知渠道为邮件

    @Value("${region.service.cos}")
    private String serviceCos;

    @Value("${region.service.user}")
    private String serviceUser;

    @Value("${region.service.vehicle}")
    private String serviceVehicle;

    @Value("${region.service.account}")
    private String serviceAccount;

//    @Value("${mail.additionalHeaders}") // @Value注解不能直接绑定Map属性
//    private Map<String, String> emailAdditionalHeaders;
}
